<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        html,body{
            height: 100%;
            overflow: hidden;
        }
        .container{
            position: relative;
            height: 100%;
        }
        .left,.right{
            position:absolute;
            top:0;
            width:200px;
            min-height: 200px;
            background: lightblue;
        }
        .left {
            left:0;
        }
        .right{
            right: 0;
        }
        .center{
            margin: 0 200px;
            min-height: 400px;
            background:lightsalmon;
        }
    </style>
</head>
<body>
    <!-- 原理就是左右放padding200px;其余两个宽度都为200px;排布； -->
    <div class="container clearfix">
        <div class="center"></div>
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>
</html>